package com.sky.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

@Mapper
public interface ReportMapper {
    @Select("select sum(amount) from orders where order_time>=#{begin} and order_time<=#{end} and status=#{status}")
    Double sumByMap(Map map);
}